﻿<%@ Page Title="Change Profile Picture" Language="C#" MasterPageFile="~/Shared/DefaultMaster.master"
    AutoEventWireup="true" CodeBehind="ChangeProfilePicture.aspx.cs" Inherits="Churchtoolkit.Web.ChangeProfilePicture" %>

<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="server">
    <table>
        <tr>
            <td rowspan="3">
                <asp:BorderImage runat="server" ID="imgPreview" Width="120px" />
            </td>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:FileUpload ID="fileUpChangePicture" runat="server" />
                            <asp:Button ID="btnUpload" Text="Upload" runat="server" OnClick="btnUpload_Click" />
                        </td>
                        <td>
                            <asp:CustomValidator runat="server" ID="vldNotImage" OnServerValidate="NotImage_Validate"
                                ErrorMessage="0010" Display="Dynamic"></asp:CustomValidator>
                        </td>
                        <td>
                            <asp:CustomValidator runat="server" ID="vldBigImage" OnServerValidate="BigImage_Validate"
                                ErrorMessage="0011" Display="Dynamic"></asp:CustomValidator>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnOk" Text="OK" runat="server" OnClick="btnOk_Click" />
                <asp:Button ID="btnCancel" Text="Cancel" runat="server" OnClick="btnCancel_Click" />
            </td>
        </tr>
         <tr>
            <td colspan="2" align="left" class="footer">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </td>
        </tr>
   </table>
       
    </table>
</asp:Content>
